package net.niufei.study.cpatterns.activeobject;

public class DisplayRequest implements Request {
	private final Servant servant;
	private final String string;

	public DisplayRequest(Servant servant, String string) {
		this.servant = servant;
		this.string = string;
	}
	
	@Override
	public void execute() {
		servant.displayString(string);
	}

}
